package itemlog

import "xr-game-server/entity"

type ByUpdatedAt []*entity.ItemLog

func (a ByUpdatedAt) Len() int {
	return len(a)
}

func (a ByUpdatedAt) Less(i, j int) bool {
	return a[i].UpdatedAt.Unix() > a[j].UpdatedAt.Unix()
}
func (a ByUpdatedAt) Swap(i, j int) {
	a[i], a[j] = a[j], a[i]
}
